package com.isesol.ime.util;

import java.util.concurrent.*;

/**
 * 缓存工具类
 */
public class CacheUtil{

	private static final ConcurrentHashMap cacheMap = new ConcurrentHashMap();

	private CacheUtil(){

	}

	/**
	 * get
	 *
	 * @param key
	 *
	 * @return
	 */
	public static Object get(String key){

		return cacheMap.get(key);
	}

	/**
	 * @param key
	 * @param value
	 */
	public static void put(String key, Object value){

		cacheMap.put(key, value);
	}

	/**
	 * clearAll
	 */
	public static void clearAll(){

		cacheMap.clear();

	}
}
